<template>
    <div style="width: 100%; height:100vh">

        <iframe :src="this.ifUrl" frameborder="0" width="100%" height="100vh" :style="{height:calHeight}" scrolling="auto"></iframe>

    </div>
</template>


<script>

    export default {
        name: "Video",
        data() {
            return {

                url: '',
                ifUrl: 'https://dsxys.pro/'
            }
        },

        methods: {

        },
        computed: {
            //计算属性 , 设置iframe高度为窗口高度少100px
            calHeight() {
                return (window.innerHeight) + 'px';
            }
        },
    }
</script>

<style scoped>

</style>
